package com.ms.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ms.constant.GenderTypeConstant;
import com.ms.constant.RoleConstants;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class UserVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private Integer id;
    private String username;
    private String nickname;
    private String email;
    private String gender = GenderTypeConstant.UNKNOWN;
    private String bio;
    
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String avatarUrl;

    private String backgroundUrl;

    // 角色权限（SUPER_ADMIN, CONTENT_ADMIN, USER）
    private String role = RoleConstants.DEFAULT_ROLE;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}